import java.util.*;

public class Test2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();

        //write your code here......
        if (num == 0) {
            System.out.print(0);
        } else {
            int count = 0;
            int num2 = num;

            while (num2 != 0) {
                count++;
                num2 /= 2;
            }

            int[] arr = new int[count];

            int i = 0;

            while (num != 0) {
                if (num % 2 == 0) {
                    arr[i] = 0;
                } else {
                    arr[i] = 1;
                }
                i++;
                num /= 2;
            }

            for (int j = count - 1; j >= 0; j--) {
                System.out.print(arr[j]);
            }

        }

    }
}